package com.quickdv.load;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.View;
import android.view.ViewParent;

import com.quickdv.R;

/**
 *
 *
 * Created by Administrator on 2015/9/8.
 */
public class CXLoadImp implements CXLoad{

    Context c;
    View view;

    public CXLoadImp(Context c){
        this.c = c;
    }

    @Override
    public AlertDialog createError() {
        AlertDialog dialog_error = new AlertDialog.Builder(c).setMessage(c.getResources().getString(R.string.network_error))
                .setNegativeButton(R.string.sure,new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {

                    }
                }).create();
        return dialog_error;
    }

    @Override
    public void setView(View view) {
        View root = ((Activity) c).getWindow().getDecorView();
        ViewParent group = root.getParent();
    }
}
